﻿
using OpenCvSharp;

namespace Xc.DataAccess.CodeReader.Models
{
    public class CVPointFloat:CVPointBase<float>
    {
        public static implicit operator Point2f(CVPointFloat cVPoint)
        {
            if (cVPoint == null)
            {
                return new Point2f();
            }
            return new Point2f { X = cVPoint.X, Y = cVPoint.Y };
        }
        public static explicit operator CVPointFloat(Point2f cVPoint)
        {
            if (cVPoint == null)
            {
                return new CVPointFloat();
            }
            return new CVPointFloat { X = cVPoint.X, Y = cVPoint.Y };
        }
    }
}
